import request from '@/utils/request'

// 创建店铺详情
export function createStoreDetail(data) {
  return request({
    url: '/mallManager/storeDetail/create',
    method: 'post',
    data: data
  })
}

// 更新店铺详情
export function updateStoreDetail(data) {
  return request({
    url: '/mallManager/storeDetail/update',
    method: 'put',
    data: data
  })
}

// 删除店铺详情
export function deleteStoreDetail(id) {
  return request({
    url: '/mallManager/storeDetail/delete?id=' + id,
    method: 'delete'
  })
}

// 获得店铺详情
export function getStoreDetail(id) {
  return request({
    url: '/mallManager/storeDetail/get?id=' + id,
    method: 'get'
  })
}

// 获得店铺详情分页
export function getStoreDetailPage(params) {
  return request({
    url: '/mallManager/storeDetail/page',
    method: 'get',
    params
  })
}
// 导出店铺详情 Excel
export function exportStoreDetailExcel(params) {
  return request({
    url: '/mallManager/storeDetail/export-excel',
    method: 'get',
    params,
    responseType: 'blob'
  })
}
